package com.hmall.common.client;


import com.hmall.common.dto.Address;
import com.hmall.common.dto.Item;
import com.hmall.common.dto.PageDTO;
import com.hmall.common.intercepter.MyFeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "userservice" ,configuration = MyFeignInterceptor.class)
public interface AdderssFeignClient {
    /**
    * @功能: 根据地址id查询地址
    * @return: com.hmall.common.dto.Address
    */
    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id);
}
